package structure.decorator;

/**
 * @author lzp
 * @Date:2023/2/24
 * @description: 下划线装饰器
 */
public class UnderlineDecorator extends NodeDecorator {
	protected UnderlineDecorator(TextNode target) {
		super(target);
	}

	@Override
	public String getText() {
		return "<underline>" + target.getText() + "</underline>";
	}
}
